﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Configuration;

namespace HelpersDotNet.HttpModules
{
    public class HttpCompressionModule : ConfigurationSection, IHttpModule
    {
        public HttpCompressionElementCollection HttpCompressionContents
        {
            get { return (HttpCompressionElementCollection)base[HttpCompressionMappingConstants.ConfigurationPropertyName]; }
        }

        private static Dictionary<string, IHttpCompressionType> _factories = new Dictionary<string, IHttpCompressionType>();

        #region IHttpModule Members

        public void Dispose() { }

        public void Init(HttpApplication context)
        {
            context.PreRequestHandlerExecute += new EventHandler(Compress);
        }

        void Compress(object sender, EventArgs e)
        {
            HttpApplication context = ((HttpApplication)sender);
        }

        #endregion
    }
}
